package com.sas.domain;

import javax.persistence.Entity;

@Entity
public class Address extends PersistentEntity {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2797494139590504015L;
	private String street;
	private Integer number;
	private String department;
	private String city;
	private String province;
	private String postalCode;
	private String country;
	
	Address () {
	}

	public Address(String street, Integer number, String department,
			String city, String province, String country, String postalCode) {
		setStreet(street);
		setNumber(number);
		setDepartment(department);
		setCity(city);
		setProvince(province);
		setCountry(country);
		setPostalCode(postalCode);
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
//		Assert.notNull(number);
//		Assert.state(number > 0);
		this.number = number;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
//		Assert.notNull(department);
		this.department = department;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
//		Assert.hasText(city);
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
//		Assert.hasText(province);
		this.province = province;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
//		Assert.notNull(postalCode);
		this.postalCode = postalCode;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
//		Assert.notNull(country);
		this.country = country;
	}

}
